const { getValue } = require('../config/redisConfig')
const checkCode = async(key, value) => {
  const redisData = await getValue(key)
  console.log('redis: ', redisData)
  if (redisData !== null) {
    return redisData.toLowerCase() === value.toLowerCase()
  }
  return false
}
module.exports = {
  checkCode
}
